/* pages/user/deck-card-search/deck-card-search.page.wxss */

.search {
  display: flex;
  background-color: var(--bg-main);
  box-shadow: 1px 1px 10px #323232;

  ua-card-filter {
    width: 100%;
  }
}

.preview {
  padding: 0.25rem;
  box-shadow: 1px 1px 10px #323232;
  background-color: white;

  .tab-bar {
    height: 1.5rem;
    display: flex;
    flex-direction: row;
    padding: 0.25rem 0.25rem 0.5rem 0.25rem;
    justify-content: space-between;

    .tabs {
      display: inline-flex;
      width: 80%;
      flex-direction: row;
      justify-content: space-between;

      .tab {
        display: inline-flex;
        border-radius: 1rem;
        font-size: 0.8em;
        line-height: 1.2rem;
        color: var(--color-h3);
        background-color: var(--bg-light);
        justify-content: center;
        align-items: center;
        width: 22%;
      }
    }

    .icon {
      display: inline-flex;
      border-radius: 1rem;
      width: 2rem;
      font-size: 0.8em;
      line-height: 1.2rem;
      color: var(--color-danger);
      background-color: var(--bg-danger-light);
      justify-content: center;
      align-items: center;

    }

    .tab.active {
      color: white;
      background-color: var(--bg-main);
    }
  }

  .deck {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    height: 6rem;
    white-space: nowrap;
    background-color: var(--bg-main);

    .cover {
      display: inline-block;
      height: 6rem;
      margin-right: 0.25rem;
      position: relative;

      .img {
        height: 100%;
      }

      .hint {
        display: inline-flex;
        justify-content: center;
        align-items: center;
        background-color: var(--bg-main);
        height: 1.25rem;
        width: 1.25rem;
        color: white;
        border-top-left-radius: 0.25rem;
        position: absolute;
        bottom: 0;
        right: 0;
        font-size: 0.8em;
      }
    }
  }

  .deck.full {
    height: auto;
    min-height: 6rem;
    max-height: 20rem;
    overflow-y: auto;
    overflow-x: hidden;

    .cover {
      //   width: 20%;
      float: left;
      //   margin-right: 0;
      margin-bottom: 0.25rem;
      //   display: inline-flex;

      //   .img {
      //     margin: auto;
      //     justify-content: center;
      //     align-items: center;
      //   }
    }
  }
}

.empty {
  height: 2.5rem;
}

.popup-card-detail {
  --td-popup-bg-color: rgba(255, 255, 255, 0);
}

.flex {
  display: flex !important;
  justify-content: center;
  align-items: center;
  padding: 0.25rem;
}

.block {
  height: 1px;
  display: block;
}

.border {
  margin-top: 0.25rem;
  background-color: white;
}

.fill {
  width: 100%;
}

.bottom {
  padding-bottom: 200rpx;
}

.top {
  padding-top: 1rem;
}

.t-empty__image {
  width: 265rpx !important;
  height: 179rpx !important;
}